/*
 * This demonstrates the variable.
 * Call this file Example2.java
 */
class Example2 {
    public static void main(String args[]) {
        int var1; // this calls one variable.
        int var2; // this calls another variable.

        // you could call two variables with one line.
        // int var1, var2;

        var1 = 1024; // this assigns 1024 to var1
        
        System.out.println("var1 contains " + var1);

        var2 = var1 / 2; 

        System.out.print("var2 contains var1 / 2: ");
        System.out.println(var2);
    }
}


